<?php foreach($glbu as $key): ?>
	<div class="ibox float-e-margins">
		<div class="ibox-title" style="border: none;">
			<h5 style="color: #00afef"><i>View</i></h5>
		</div>
		<div class="ibox-content">
			<form class="form-horizontal" id="glbuFormedit">
	
				<input readonly type="hidden" name="bu_id" value="<?php echo $key->bu_id; ?>" class="form-control">
				<div class="form-group">
					<label class="col-lg-4 control-label">Code</label>
					<div class="col-lg-5">
						<input readonly type="text" name="bu_code" value="<?php echo $key->bu_code; ?>" class="form-control">
					</div>
				</div>
				<div class="form-group">
					<label class="col-lg-4 control-label">Name</label>
					<div class="col-lg-5">
						<input readonly type="text" value="<?php echo $key->bu_name; ?>" name="bu_name" class="form-control">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-4 control-label">Sales Account</label>
					<div class="col-sm-5">
						<input readonly type="text" value="<?php echo $key->sales_name; ?>" name="bu_name" class="form-control">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-4 control-label">COGS Account</label>
					<div class="col-sm-5">
						<input readonly type="text" value="<?php echo $key->cogs_name; ?>" name="bu_name" class="form-control">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-4 control-label">Expense Account</label>
					<div class="col-sm-5">
						<input readonly type="text" value="<?php echo $key->exp_name; ?>" name="bu_name" class="form-control">
					</div>
				</div>
				<div class="form-group">
					<label class="col-lg-4 control-label">Enable</label>
					<div class="col-lg-1">
						<input disabled type="checkbox" name="glbu_enabled" class="i-checks" <?php echo  $key->enable_flag == 'Y' ? 'checked' : '' ; ?>> 
					</div>
				</div>
			</form>
		</div>
	</div>
<?php endforeach; ?>
	<script type="text/javascript">
	$(document).ready(function() {
		$('.i-checks').iCheck({
            checkboxClass: 'icheckbox_square-green',
            radioClass: 'iradio_square-green'
        });
	});
	</script>